package com.webchat.chat.web.page;

import com.webchat.chat.core.tools.ChatConstant;
import com.webchat.chat.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Owner on 2018/7/11.
 */
@Controller
@RequestMapping(ChatConstant.CONTROLLER_ROOT_PATH + "/page")
public class PageController extends BaseController {

    @RequestMapping(value = "/chat", method = RequestMethod.GET)
    public String toChat(String tenantCode, String userName, Model model) {
        model.addAttribute("tenantCode", tenantCode);
        model.addAttribute("userName", userName);
        return "/customer-index";
    }
}
